<HEAD>
<BODY>
<?
include 'conexion.php';
extract($_POST);
    extract($_GET);
	/*$base= "ucg - copia";

	$conexion=mysql_connect("localhost","root","");

	mysql_select_db($base,$conexion);
	
	$sql="SELECT cod from solicompra where cod_soli='$ord'";
	$resul=mysql_query($sql,$conexion);
	$orden= mysql_fetch_array($resul);
	$ord=$orden[0];*/
	mysql_query("DELETE FROM id_detalle WHERE cod_solid='$ord'",$conexion);
	
	
	mysql_query("DELETE FROM solicompra WHERE cod_solid='$ord'",$conexion); 	
	mysql_close($conexion);
	

?>

<script language='JavaScript'>
alert('!ORDEN CANCELADA COMIENZA DE NUEVO!')
window.self.location="solicompra1.php"
</script>

</HEAD>
</BODY>
